package com.mrd.gtimpframe.action;

import com.mrd.framework.config.web.json.Result;
import com.mrd.gtimpframe.service.AccountService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by dusy on 2017/7/24.
 */
@Controller
@RequestMapping("/api/com")
public class AccountController {
    @Autowired
    private AccountService accountService;

    /**
     * 查询当前用户当前时间点的公司余额
     * @return
     */
    @RequestMapping("/currentBalance")
    @ResponseBody
    public Result getCurrentBalance(){
        return accountService.getCurrentBalance();
    }
}
